home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / Development Kits / QuickTime / QuickTime 3 Interfaces & Libs / QTDevWin / CIncludes / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-21  |  3.4 KB  |  169 lines  |  [TEXT/dosa]

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1988-1998, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __TERMINALTOOLS__
  19. #define __TERMINALTOOLS__
  20.  
  21. #ifndef __CONDITIONALMACROS__
  22. #include <ConditionalMacros.h>
  23. #endif
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. #ifndef __TERMINALS__
  28. #include <Terminals.h>
  29. #endif
  30.  
  31.  
  32.  
  33. #if PRAGMA_ONCE
  34. #pragma once
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_IMPORT
  42. #pragma import on
  43. #endif
  44.  
  45. #if PRAGMA_STRUCT_ALIGN
  46.     #pragma options align=mac68k
  47. #elif PRAGMA_STRUCT_PACKPUSH
  48.     #pragma pack(push, 2)
  49. #elif PRAGMA_STRUCT_PACK
  50.     #pragma pack(2)
  51. #endif
  52.  
  53.  
  54. enum {
  55.     tdefType                    = FOUR_CHAR_CODE('tdef'),
  56.     tvalType                    = FOUR_CHAR_CODE('tval'),
  57.     tsetType                    = FOUR_CHAR_CODE('tset'),
  58.     tlocType                    = FOUR_CHAR_CODE('tloc'),
  59.     tscrType                    = FOUR_CHAR_CODE('tscr'),
  60.     tbndType                    = FOUR_CHAR_CODE('tbnd'),
  61.     tverType                    = FOUR_CHAR_CODE('vers')
  62. };
  63.  
  64.  
  65. enum {
  66.                                                                 /* messages */
  67.     tmInitMsg                    = 0,
  68.     tmDisposeMsg                = 1,
  69.     tmSuspendMsg                = 2,
  70.     tmResumeMsg                    = 3,
  71.     tmMenuMsg                    = 4,
  72.     tmEventMsg                    = 5,
  73.     tmActivateMsg                = 6,
  74.     tmDeactivateMsg                = 7,
  75.     tmGetErrorStringMsg            = 8,
  76.     tmIdleMsg                    = 50,
  77.     tmResetMsg                    = 51,
  78.     tmKeyMsg                    = 100,
  79.     tmStreamMsg                    = 101,
  80.     tmResizeMsg                    = 102,
  81.     tmUpdateMsg                    = 103,
  82.     tmClickMsg                    = 104,
  83.     tmGetSelectionMsg            = 105,
  84.     tmSetSelectionMsg            = 106,
  85.     tmScrollMsg                    = 107,
  86.     tmClearMsg                    = 108,
  87.     tmGetLineMsg                = 109,
  88.     tmPaintMsg                    = 110,
  89.     tmCursorMsg                    = 111,
  90.     tmGetEnvironsMsg            = 112,
  91.     tmDoTermKeyMsg                = 113,
  92.     tmCountTermKeysMsg            = 114,
  93.     tmGetIndTermKeyMsg            = 115
  94. };
  95.  
  96.  
  97. enum {
  98.                                                                 /* messages for validate DefProc    */
  99.     tmValidateMsg                = 0,
  100.     tmDefaultMsg                = 1
  101. };
  102.  
  103.  
  104. enum {
  105.                                                                 /* messages for Setup DefProc    */
  106.     tmSpreflightMsg                = 0,
  107.     tmSsetupMsg                    = 1,
  108.     tmSitemMsg                    = 2,
  109.     tmSfilterMsg                = 3,
  110.     tmScleanupMsg                = 4
  111. };
  112.  
  113.  
  114. enum {
  115.                                                                 /* messages for scripting defProc    */
  116.     tmMgetMsg                    = 0,
  117.     tmMsetMsg                    = 1
  118. };
  119.  
  120.  
  121. enum {
  122.                                                                 /* messages for localization defProc  */
  123.     tmL2English                    = 0,
  124.     tmL2Intl                    = 1
  125. };
  126.  
  127.  
  128. struct TMSearchBlock {
  129.     StringHandle                     theString;
  130.     Rect                             where;
  131.     TMSearchTypes                     searchType;
  132.     TerminalSearchCallBackUPP         callBack;
  133.     short                             refnum;
  134.     struct TMSearchBlock *            next;
  135. };
  136. typedef struct TMSearchBlock            TMSearchBlock;
  137. typedef TMSearchBlock *                    TMSearchBlockPtr;
  138.  
  139. struct TMSetupStruct {
  140.     DialogPtr                         theDialog;
  141.     short                             count;
  142.     Ptr                             theConfig;
  143.     short                             procID;                        /* procID of the tool */
  144. };
  145. typedef struct TMSetupStruct            TMSetupStruct;
  146.  
  147. typedef TMSetupStruct *                    TMSetupPtr;
  148.  
  149. #if PRAGMA_STRUCT_ALIGN
  150.     #pragma options align=reset
  151. #elif PRAGMA_STRUCT_PACKPUSH
  152.     #pragma pack(pop)
  153. #elif PRAGMA_STRUCT_PACK
  154.     #pragma pack()
  155. #endif
  156.  
  157. #ifdef PRAGMA_IMPORT_OFF
  158. #pragma import off
  159. #elif PRAGMA_IMPORT
  160. #pragma import reset
  161. #endif
  162.  
  163. #ifdef __cplusplus
  164. }
  165. #endif
  166.  
  167. #endif /* __TERMINALTOOLS__ */
  168.  
  169.